Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io: always impl Error for Errno in rustc 1.81+ #1241

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Kijewski
Copy link
Contributor

In rust 1.81 the feature error_in_core was stabilized. This makes the Error trait available in core::error instead of std::error, so it can be used in a no-std context, too.

Resolves #1234.

In rust 1.81 the feature [`error_in_core`] was stabilized. This makes
the `Error` trait available in `core::error` instead of `std::error`, so
it can be used in a no-std context, too.

[`error_in_core`]: <rust-lang/rust#103765>
@sunfishcode sunfishcode merged commit 7be3386 into bytecodealliance:main Dec 18, 2024
45 checks passed
@sunfishcode
Copy link
Member

Thanks!

@Kijewski Kijewski deleted the pr-error_in_core branch December 18, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustix::io::Errno should impl core::error::Error with rust 1.81+, regardless of cfg(std)
2 participants